<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>常用指令v-show</title>
</head>
<body>
    <div id="smartParty">
        {{boo}}
        <hr>
        <!-- v-show就是给标签设置样式 display:none -->
        <p v-show='boo<=6'>我是5以内</p>
        <button @click="add">按我加1</button>
        <button @click="minus">按我减1</button>
    </div>
    <script src="js/vue2.js"></script>
    <script>
        new Vue({
            el:'#smartParty',
            data:{
                boo:0
            },
            methods:{
                add(){
                    this.boo++;
                },
                minus(){
                    this.boo--;
                }
            }
        });
    </script>
</body>
</html>